package com.puttysoftware.fantastlex.ai.window;

import com.puttysoftware.randomrange.RandomRange;

public final class RandomWindowAIRoutinePicker {
    // Constants
    public static final int ROUTINE_COUNT = 8;

    // Methods
    public static AbstractWindowAIRoutine getNextRoutine() {
        RandomRange r = new RandomRange(1,
                RandomWindowAIRoutinePicker.ROUTINE_COUNT);
        int routine = r.generate();
        switch (routine) {
        case 1:
            return new AttackAIRoutine();
        case 2:
            return new PoisonThenAttackAIRoutine();
        case 3:
            return new RandomlyFleeAIRoutine();
        case 4:
            return new HealIfHealthLowAIRoutine();
        case 5:
            return new DelevelThenAttackAIRoutine();
        case 6:
            return new ChargeThenAttackAIRoutine();
        case 7:
            return new DelevelAndChargeAIRoutine();
        case 8:
            return new PoisonAndHealAIRoutine();
        default:
            return new AttackAIRoutine();
        }
    }
}
